<?php

namespace App\Event;

/**
 * 用户上线事件
 */
class UserOnlineEvent
{
    public $userId;
    public $onlineStatus;
    // public $gender;
    public $eventType = 'online';

    public function __construct($userId = 0, $onlineStatus = 1)
    {
        $this->userId = $userId;
        $this->onlineStatus = $onlineStatus;
    }
}
